package com.shangan.shortlink.admin.common.enums;

import com.shangan.shortlink.admin.common.convention.errcode.IErrorCode;

/**
 * @author: Jerryzaj
 * @description TODO
 * @date: 2024/4/27 19:15
 */
public enum UserErrorCodeNum implements IErrorCode {


    USER_NULL("B000200","用户信息不存在"),
    USER_NAME_EXIST("B000201", "用户名已存在"),
    USER_EXIST("B000202","用户信息已存在"),

    USER_SAVE_ERROR("B000203", "用户新增失败"),

    LOCK_ACQUISITION_FAILED("B000204","获取锁失败");



    private final String code;

    private final String message;

    UserErrorCodeNum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public String code() {
        return code;
    }

    @Override
    public String message() {
        return message;
    }
}
